package com.example.managementjava.course;

public class Course {
    String sid;
    String name;
    String class1;
    String score;
    String credits;
    String gpa;
    String pass;

    public Course(String studentid, String name, String class1, String score, String credits, String gpa, String pass) {
        this.sid = studentid;
        this.name = name;
        this.class1 = class1;
        this.score = score;
        this.credits = credits;
        this.gpa = gpa;
        this.pass = pass;
    }

    public String getSid() {
        return sid;
    }

    public String getName() {
        return name;
    }

    public String getClass1() {
        return class1;
    }

    public String getScore() {
        return score;
    }

    public String getCredits() {
        return credits;
    }

    public String getGpa() {
        return gpa;
    }

    public String getPass() {
        return pass;
    }

    @Override
    public String toString() {
        return sid + ',' +name + ',' +class1 + ',' +score + ',' + credits + ',' +gpa+ ',' + pass;
        
//        return "Course{" +
//                "sid='" + sid + '\'' +
//                ", name='" + name + '\'' +
//                ", class1='" + class1 + '\'' +
//                ", score='" + score + '\'' +
//                ", credits='" + credits + '\'' +
//                ", gpa='" + gpa + '\'' +
//                ", pass='" + pass + '\'' +
//                '}';
    }
}
